package com.bole.dao;

import com.bole.pojo.ArticleDo;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.Repository;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
public interface ArticleDao extends Repository<ArticleDo,Long> {
    List<ArticleDo> findAll();
    ArticleDo findById(Long id);
    void  save(ArticleDo articleDo);
    void deleteById(Long id);
}
